<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>报表查询</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="system/styles/igrX.css" />
</head>

<body>
    <div id="container"></div>
    <div id="idButtons" class="paragraph"></div>
    <h1>燃气报表</h1>
    <div id="idTimestamp" class="paragraph"></div>
    <table width="60%">
        <tr>
            <td rowspan="2">分项</td>
            <th colspan="2">车间1</th>
            <th colspan="2">车间2</th>
            <th colspan="2">车间3</th>
            <th colspan="3">车间4</th>
            <th rowspan="2">合计</th>
        </tr>
        <tr>
            <th>#1燃烧器</th>
            <th>#2燃烧器</th>
            <th>#3燃烧器</th>
            <th>#4燃烧器</th>
            <th>#5燃烧器</th>
            <th>#6燃烧器</th>
            <th>#7燃烧器</th>
            <th>#8燃烧器</th>
            <th>#9燃烧器</th>
        </tr>
        <tr>
            <td>时间/单位</td>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
            <th>(立方米)</th>
        </tr>
        <tr>
            <td data-igrx='{"attr":"log","tag":"app.currentTime"}'>Time</td>
            <td data-igrx='{"attr":"log","tag":"part_a"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_b"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_c"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_d"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_a"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_b"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_c"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_d"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_d"}'>#0.###0</td>
            <td data-igrx='{"attr":"log","tag":"part_d"}'>#0.###0</td>
        </tr>
        <tr>
            <td>小结</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>平均</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"avg","tag":"part_a"}'>#,##0.###0</td>
        </tr>
        <tr>
            <td>总计</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"sum","tag":"part_a"}'>#,##0.###0</td>
        </tr>
        <tr>
            <td>最大值</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"max","tag":"part_a"}'>#,##0.###0</td>
        </tr>
        <tr>
            <td>最小值</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
            <td data-igrx='{"attr":"min","tag":"part_a"}'>#,##0.###0</td>
        </tr>
    </table>
</body>
<script type='text/javascript' src='system/scripts/igrX.js'></script>
<script type="text/javascript">

    var rpt = igrx.report();
    var dataA = igrx.getTag('tag1');
    console.log(dataA);

</script>

</html>